package com.jihui.enterprise.domain.infrastructure.domain;

import com.jihui.enterprise.AbcEnterprise;
import com.jihui.enterprise.domain.infrastructure.domain.mapper.EnterpriseMapper;
import com.jihui.enterprise.domain.model.EnterpriseRepository;
import org.jetbrains.annotations.Nullable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * ${DESCRIPTION}
 *
 * @author 王进
 * @since 2017-09-19 14:28
 **/
@Repository
public class EnterpriseRepositoryImpl implements EnterpriseRepository {
    @Autowired
    private EnterpriseMapper enterpriseMapper;
    @Override
    public @Nullable AbcEnterprise findByUserId(String userId) {
        return enterpriseMapper.findByUserId(userId);
    }
}
